package ip;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;

public class udp_in {
    public static void main(String[] args) throws IOException {
        DatagramSocket shou = new DatagramSocket(10086);

        byte[] byt =new byte[1024];
        DatagramPacket dps =new DatagramPacket(byt,byt.length);

        shou.receive(dps);

        byte[] btys = dps.getData();
        String datas = new String(btys);
        System.out.println(datas);

        shou.close();

    }
}
